<% disabled = @disabled.nil? ? '' : @disabled %>
<table border="0" cellspacing="5" cellpadding="5">
	<tr>
		<td class="show_label">Artist</td>
		<% if @disabled %>
			<td class="show_value"><%= f.text_field :artist_name, :disabled => @disabled if @disabled %></td>
		<% else %>
			<td class="show_value"><%= select :record, :artist_id, Artist.find(:all).collect{|e| [e.name, e.id]} if !@disabled %>
		</tr>
		<% end %>
	<tr>
		<td class="show_label">Name</td>
		<td class="show_value"><%= f.text_field :name, :disabled => @disabled %></td>
	</tr>
	<tr>
		<td class="show_label">Release Type</td>
		<td class="show_value"><%= f.text_field :release_type, :disabled => @disabled %></td>
	</tr>
	<tr>
		<td class="show_label">Description</td>
		<td class="show_value"><%= f.text_area :description, :disabled => @disabled %></td>
	</tr>
</table>

<div id="tracks">
	<h4>Tracks</h4>
	<%= render :partial => 'track', :collection => @record.tracks %>			
</div>

<p>
	<%= add_track_link "Add a Track" if not @disabled%>
</p>	